package com.wingscode.modules.admin.from;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 动态表单
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@ApiModel(value = "广告表单")
public class AdvertisementForm {
    private Long id;
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value = "urlList")
    @NotEmpty(message = "urlList")
    private List<String> urlList;
}
